﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("Spend")]
    public class Expense
    {
        [Key]
        public DateTime DateRegistry { get; set; }

        [ForeignKey("User")]
        public string UserId { get; set; }
        public virtual User User { get; set; }
        public DateTime SpendDate { get; set; }
        public decimal Price { get; set; }
        public short ExpenseType { get; set; }
        public int Amount { get; set; }

        public string Description { get; set; }
        public string Receipt { get; set; }

        [NotMapped]
        public string estructura { get; set; }
    }
}
